<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/commons/taglibs.jsp" %>    
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript">
if (top.location != self.location) {top.location=self.location;}
</script>
<title>User login</title>
</head>
<body>
<div class="form-box clearfix">
	<h2>用户登录</h2>
	<div class="login-form-left">
		<div class="login-box">
			<script>
				$(document).ready(function() {
					$("#j_username").focus();
				});
			</script>
			<h3>登录</h3>
			<div class="error ${param.error == '1' ? '' : 'hide'}">
		           登陆失败：${sessionScope.SPRING_SECURITY_LAST_EXCEPTION}
		    </div> 
			<form id="loginForm" action="${ctx }/j_spring_security_check" method="post" style="margin-top:1em">
			<input type="hidden" name="from" value="<c:out value="${param.from }" default="" />">
			<ul>
				<li><span>账&nbsp;&nbsp;&nbsp;&nbsp;号：</span><input type='text' id='j_username' name='j_username'/></li>
				<li><span>密&nbsp;&nbsp;&nbsp;&nbsp;码：</span><input type='password' id='j_password' name='j_password'/></li>
				<li><input value="提交" type="submit"/></li>
			</ul>
			</form>
		</div>
	</div>
	<div class="login-form-right">
	bbbbbs
	</div>
	<div class="clean"></div>
	<h2>其他登录方式</h2>
	<div class="login-form-left">
		<a href="${ctx}/taobao">淘宝账号登录</a>
	</div>
	<div class="login-form-right">
	bbbbbs
	</div>
</div>
</body>
</html>